<?php

/** @var \Laravel\Lumen\Routing\Router $router */

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

$router->group(['prefix' => 'admin','namespace' => 'Admin'], function () use ($router) {
    $router->post('login', 'AuthController@login');
});

$router->group(['prefix' => 'admin','middleware' => 'auth:api','namespace' => 'Admin'], function () use ($router) {
    $router->post('refreshToken', 'AuthController@refreshToken');
    $router->get('userAuth', 'UserController@userAuth');
    $router->get('logout', 'LoginController@logout');
    $router->get('menuList', 'MenuController@menuList');
    $router->get('districtTree', 'CommonController@districtTree');
    $router->post('upload', 'CommonController@upload');
    $router->post('fileAdd', 'CommonController@fileAdd');
    $router->get('getParams', 'CommonController@getParams');

    $router->post('getUserList', 'UserController@getUserList');
    $router->post('userList', 'UserController@userList');
    $router->post('userAdd', 'UserController@userAdd');
    $router->post('userDel', 'UserController@userDel');

    $router->post('getRoleList', 'RoleController@getRoleList');
    $router->post('roleList', 'RoleController@roleList');
    $router->post('roleAdd', 'RoleController@roleAdd');
    $router->post('roleDel', 'RoleController@roleDel');
    $router->post('getPermission', 'RoleController@getPermission');

    $router->post('customList', 'CustomController@customList');
    $router->post('customInfo', 'CustomController@customInfo');
    $router->post('getFollows', 'CustomController@getFollows');
    $router->post('insertCustom', 'CustomController@insertCustom');
    $router->post('updateCustom', 'CustomController@updateCustom');
    $router->post('updateCustomState', 'CustomController@updateCustomState');
    $router->post('updateCustomStatus', 'CustomController@updateCustomStatus');
    $router->post('updateCustomIntention', 'CustomController@updateCustomIntention');
    $router->post('updateCustomDrow', 'CustomController@updateCustomDrow');
    $router->post('customDel', 'CustomController@customDel');
    $router->post('insertFollow', 'CustomController@insertFollow');
    $router->get('exportLog', 'CustomController@exportLog');
    $router->post('exportTemplate', 'CustomController@exportTemplate');

    $router->get('getCustomReport', 'CustomController@getCustomReport');

    $router->post('memberList', 'MemberController@memberList');
    $router->post('getMemberList', 'MemberController@getMemberList');
    $router->post('getMemberCoudList', 'MemberController@getMemberCoudList');
    $router->post('getMatchList', 'MemberController@getMatchList');
    $router->post('memberAdd', 'MemberController@memberAdd');
    $router->post('memberStatus', 'MemberController@memberStatus');
    $router->post('memberRemark', 'MemberController@memberRemark');

    $router->post('lineList', 'LineController@lineList');
    $router->post('lineStatusUpdate', 'LineController@lineStatusUpdate');
    $router->post('lineDel', 'LineController@lineDel');

    $router->post('reportList', 'ReportController@reportList');
    $router->post('reportStatusUpdate', 'ReportController@reportStatusUpdate');
    $router->post('reportDel', 'ReportController@reportDel');

    $router->post('meetList', 'MeetController@meetList');
    $router->post('addMeet', 'MeetController@addMeet');
    $router->post('meetStatusUpdate', 'MeetController@meetStatusUpdate');
    $router->post('addFeedback', 'MeetController@addFeedback');

    $router->post('matchList', 'MatchController@matchList');
    $router->post('matchAdd', 'MatchController@matchAdd');
    $router->post('matchDel', 'MatchController@matchDel');

    $router->post('giftList', 'GiftController@giftList');
    $router->post('giftAdd', 'GiftController@giftAdd');
    $router->post('giftDel', 'GiftController@giftDel');
    $router->post('giftRecord', 'GiftController@giftRecord');
    $router->post('giftRecordDel', 'GiftController@giftRecordDel');

    $router->post('zoneList', 'ZoneController@zoneList');
    $router->post('zoneAdd', 'ZoneController@zoneAdd');
    $router->post('zoneDel', 'ZoneController@zoneDel');
    $router->post('zoneStatusChange', 'ZoneController@zoneStatusChange');


});


$router->group(['prefix' => 'api','namespace' => 'Api'], function () use ($router) {
    // $router->any('wx_token', 'WxController@wx_token');
    $router->post('defined_button', 'WxController@defined_button');
});
